<table class="table table-hover">
    <thead>
    <tr>
        @foreach($headers as $filed => $item)
        <th>{{ $item['title'] }}</th>
        @endforeach
    </tr>
    <tr style="color:#f56f9c">
        @foreach($headers as $filed => $item)
            @if($filed == 'account')
                <td>TTL</td>
            @elseif($item['sumField'])
                <td>{{ array_key_exists($filed,$total) ? $total[$filed] : '' }}</td>
            @else
                <td></td>
            @endif
        @endforeach
    </tr>
    </thead>
    <tbody>
    @foreach($paginator as $row)
        <tr>
            <td>{{ $row->account->account ?? '' }}</td>
            <td>{{ $row->area->area ?? '' }}</td>
            <td>{{ $row->country->country ?? '' }}</td>
            <td>{{ $row->seller_sku ?: '' }}</td>
            <td>{{ $row->fnsku ?: '' }}</td>
            <td>{{ $row->asin ?: '' }}</td>
            <td>{{ $row->sku->psku_code ?? '' }}</td>
            <td>{{ $row->sku->psku_cn ?? '' }}</td>
            <td>{{ $row->sku->classify->title ?? '' }}</td>
            <td>{{ App\Models\Product\ProductClassify::$_season[$row->sku->classify->season ?? 3] }}</td>
            <td>{{ $row->total_quantity }}</td>
            <td>{{ $row->quantity }}</td>
            <td>{{ $row->fulfillable_quantity }}</td>
            <td>{{ $row->reserved_quantity }}</td>
            <td>{{ $row->inbound }}</td>
            <td>{{ $row->amount }}</td>
        </tr>
    @endforeach
    </tbody>
</table>
